(unknown)
Subsystems (2)
Hello everyone,
the following patches add UVD support for older ASICs (RV6xx, RS[78]80, RV7[79]0). For everybody wanting to test it I've also uploaded a branch to FDO: http://cgit.freedesktop.org/~deathsimple/linux/log/?h=uvd-r600-release
Additionally to the patches you need UVD firmware as well, which can be found at the usual location: http://people.freedesktop.org/~agd5f/radeon_ucode/
A small Mesa patch is needed as well, cause the older hardware doesn't support field based output of video frames. So unfortunately VDPAU/OpenGL interop won't work either.
We can only provide best effort support for those older ASICs, but at least on my RS[78]80 based laptop it seems to work perfectly fine.
Happy testing,
Christian.
PATCH 1/6 drm/radeon: force UVD buffers into VRAM on RS[78]80 v2
From: Christian König <[email protected]>
v2: only necessary on RS[78]80
--- drivers/gpu/drm/radeon/radeon_cs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_cs.c +6 -3
@@ -136,10 +136,13 @@ static int radeon_cs_parser_relocs(struct radeon_cs_parser *p) priority = (r->flags &0xf ) *2 + !!r->write_domain;/* the first reloc of an UVD job is the msg and that must be in -VRAM, also but everything into VRAM on AGP cards to avoid -image corruptions */ +VRAM, also but everything into VRAM on AGP cards and older +IGP chips to avoid image corruptions */ if (p->ring ==R600_RING_TYPE_UVD_INDEX && - (i ==0 ||drm_pci_device_is_agp (p->rdev->ddev))) { + (i ==0 ||drm_pci_device_is_agp (p->rdev->ddev) || + p->rdev->family ==CHIP_RS780 || + p->rdev->family ==CHIP_RS880 )) { +/* TODO: is this still needed for NI+ ? */ p->relocs[i].prefered_domains =RADEON_GEM_DOMAIN_VRAM ;
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 1/6] drm/radeon: force UVD buffers into VRAM on RS[78]80 v2
Quoted 5 lines · Christian König
From: Christian König <[email protected]>
v2: only necessary on RS[78]80
Signed-off-by Christian König <[email protected]>
Series applied to my 3.18 tree.
Thanks,
Alex
Quoted 28 lines
--- drivers/gpu/drm/radeon/radeon_cs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)drivers/gpu/drm/radeon/radeon_cs.c +6
-4@@ -136,10 +136,13 @@ static int radeon_cs_parser_relocs(struct radeon_cs_parser *p) priority = (r->flags &0xf ) *2 + !!r->write_domain;/* the first reloc of an UVD job is the msg and that must be in -VRAM, also but everything into VRAM on AGP cards to avoid -image corruptions */ +VRAM, also but everything into VRAM on AGP cards and older +IGP chips to avoid image corruptions */ if (p->ring ==R600_RING_TYPE_UVD_INDEX && - (i ==0 ||drm_pci_device_is_agp (p->rdev->ddev))) { + (i ==0 ||drm_pci_device_is_agp (p->rdev->ddev) || + p->rdev->family ==CHIP_RS780 || + p->rdev->family ==CHIP_RS880 )) { +/* TODO: is this still needed for NI+ ? */ p->relocs[i].prefered_domains =RADEON_GEM_DOMAIN_VRAM ; --1.9.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/6 drm/radeon: properly init UVD MC bits on R600
In reply to Christian KönigFrom: Christian König <[email protected]>
--- drivers/gpu/drm/radeon/r600.c | 4 ++++ drivers/gpu/drm/radeon/r600d.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/r600.c +4 -0
@@ -992,6 +992,8 @@ static int r600_pcie_gart_enable(struct radeon_device *rdev)WREG32 (MC_VM_L1_TLB_MCB_WR_GFX_CNTL , tmp);WREG32 (MC_VM_L1_TLB_MCB_RD_PDMA_CNTL , tmp);WREG32 (MC_VM_L1_TLB_MCB_WR_PDMA_CNTL , tmp); +WREG32 (MC_VM_L1_TLB_MCB_RD_UVD_CNTL , tmp); +WREG32 (MC_VM_L1_TLB_MCB_WR_UVD_CNTL , tmp);WREG32 (MC_VM_L1_TLB_MCB_RD_SEM_CNTL , tmp |ENABLE_SEMAPHORE_MODE );WREG32 (MC_VM_L1_TLB_MCB_WR_SEM_CNTL , tmp |ENABLE_SEMAPHORE_MODE );WREG32 (VM_CONTEXT0_PAGE_TABLE_START_ADDR , rdev->mc.gtt_start >>12 );
@@ -1042,6 +1044,8 @@ static void r600_pcie_gart_disable(struct radeon_device *rdev)WREG32 (MC_VM_L1_TLB_MCB_WR_SYS_CNTL , tmp);WREG32 (MC_VM_L1_TLB_MCB_RD_HDP_CNTL , tmp);WREG32 (MC_VM_L1_TLB_MCB_WR_HDP_CNTL , tmp); +WREG32 (MC_VM_L1_TLB_MCB_RD_UVD_CNTL , tmp); +WREG32 (MC_VM_L1_TLB_MCB_WR_UVD_CNTL , tmp);radeon_gart_table_vram_unpin (rdev); }
drivers/gpu/drm/radeon/r600d.h +3 -1
@@ -334,7 +334,7 @@#define MC_VM_AGP_BOT 0x2188#define MC_VM_AGP_BASE 0x218C#define MC_VM_FB_LOCATION 0x2180 -#define MC_VM_L1_TLB_MCD_RD_A_CNTL 0x219C +#define MC_VM_L1_TLB_MCB_RD_UVD_CNTL 0x2124#define ENABLE_L1_TLB (1 << 0)#define ENABLE_L1_FRAGMENT_PROCESSING (1 << 1)#define ENABLE_L1_STRICT_ORDERING (1 << 2)
@@ -354,12 +354,14 @@#define EFFECTIVE_L1_QUEUE_SIZE (x) (((x) & 7) << 15)#define EFFECTIVE_L1_QUEUE_SIZE_MASK 0x00038000#define EFFECTIVE_L1_QUEUE_SIZE_SHIFT 15 +#define MC_VM_L1_TLB_MCD_RD_A_CNTL 0x219C#define MC_VM_L1_TLB_MCD_RD_B_CNTL 0x21A0#define MC_VM_L1_TLB_MCB_RD_GFX_CNTL 0x21FC#define MC_VM_L1_TLB_MCB_RD_HDP_CNTL 0x2204#define MC_VM_L1_TLB_MCB_RD_PDMA_CNTL 0x2208#define MC_VM_L1_TLB_MCB_RD_SEM_CNTL 0x220C#define MC_VM_L1_TLB_MCB_RD_SYS_CNTL 0x2200 +#define MC_VM_L1_TLB_MCB_WR_UVD_CNTL 0x212c#define MC_VM_L1_TLB_MCD_WR_A_CNTL 0x21A4#define MC_VM_L1_TLB_MCD_WR_B_CNTL 0x21A8#define MC_VM_L1_TLB_MCB_WR_GFX_CNTL 0x2210
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/6 drm/radeon: add set_uvd_clocks callback for r6xx v4
In reply to Christian KönigFrom: Alex Deucher <[email protected]>
v2: wake up PLL, set [VD]CLK_SRC, cleanup code
v3: handle RV670,RV635,RV620 as well
v4: merge rv6xx and rs780/rs880 code, fix ref divider mask
--- drivers/gpu/drm/radeon/r600.c | 88 ++++++++++++++++++++++++++++++++++++++++++ drivers/gpu/drm/radeon/r600d.h | 26 +++++++++++++ 2 files changed, 114 insertions(+)
drivers/gpu/drm/radeon/r600.c +88 -0
@@ -122,6 +122,94 @@ u32 r600_get_xclk(struct radeon_device *rdev)int r600_set_uvd_clocks (struct radeon_device *rdev,u32 vclk,u32 dclk) { +unsigned fb_div =0 , ref_div, vclk_div =0 , dclk_div =0 ; +int r; + +/* bypass vclk and dclk with bclk */ +WREG32_P (CG_UPLL_FUNC_CNTL_2 , +VCLK_SRC_SEL (1 ) |DCLK_SRC_SEL (1 ), + ~(VCLK_SRC_SEL_MASK |DCLK_SRC_SEL_MASK )); + +/* assert BYPASS_EN, deassert UPLL_RESET, UPLL_SLEEP and UPLL_CTLREQ */ +WREG32_P (CG_UPLL_FUNC_CNTL ,UPLL_BYPASS_EN_MASK , ~( +UPLL_RESET_MASK |UPLL_SLEEP_MASK |UPLL_CTLREQ_MASK )); + +if (rdev->family >=CHIP_RS780 ) +WREG32_P (GFX_MACRO_BYPASS_CNTL ,UPLL_BYPASS_CNTL , + ~UPLL_BYPASS_CNTL ); + +if (!vclk || !dclk) { +/* keep the Bypass mode, put PLL to sleep */ +WREG32_P (CG_UPLL_FUNC_CNTL ,UPLL_SLEEP_MASK , ~UPLL_SLEEP_MASK ); +return 0 ; + } + +if (rdev->clock.spll.reference_freq ==10000 ) + ref_div =34 ; +else + ref_div =4 ; + + r =radeon_uvd_calc_upll_dividers (rdev, vclk, dclk,50000 ,160000 , + ref_div +1 ,0xFFF ,2 ,30 , ~0 , + &fb_div, &vclk_div, &dclk_div); +if (r) +return r; + +if (rdev->family >=CHIP_RV670 && rdev->family <CHIP_RS780 ) + fb_div >>=1 ; +else + fb_div |=1 ; + + r =radeon_uvd_send_upll_ctlreq (rdev,CG_UPLL_FUNC_CNTL ); +if (r) +return r; + +/* assert PLL_RESET */ +WREG32_P (CG_UPLL_FUNC_CNTL ,UPLL_RESET_MASK , ~UPLL_RESET_MASK ); + +/* For RS780 we have to choose ref clk */ +if (rdev->family >=CHIP_RS780 ) +WREG32_P (CG_UPLL_FUNC_CNTL ,UPLL_REFCLK_SRC_SEL_MASK , + ~UPLL_REFCLK_SRC_SEL_MASK ); + +/* set the required fb, ref and post divder values */ +WREG32_P (CG_UPLL_FUNC_CNTL , +UPLL_FB_DIV (fb_div) | +UPLL_REF_DIV (ref_div), + ~(UPLL_FB_DIV_MASK |UPLL_REF_DIV_MASK )); +WREG32_P (CG_UPLL_FUNC_CNTL_2 , +UPLL_SW_HILEN (vclk_div >>1 ) | +UPLL_SW_LOLEN ((vclk_div >>1 ) + (vclk_div &1 )) | +UPLL_SW_HILEN2 (dclk_div >>1 ) | +UPLL_SW_LOLEN2 ((dclk_div >>1 ) + (dclk_div &1 )) | +UPLL_DIVEN_MASK |UPLL_DIVEN2_MASK , + ~UPLL_SW_MASK ); + +/* give the PLL some time to settle */ +mdelay (15 ); + +/* deassert PLL_RESET */ +WREG32_P (CG_UPLL_FUNC_CNTL ,0 , ~UPLL_RESET_MASK ); + +mdelay (15 ); + +/* deassert BYPASS EN */ +WREG32_P (CG_UPLL_FUNC_CNTL ,0 , ~UPLL_BYPASS_EN_MASK ); + +if (rdev->family >=CHIP_RS780 ) +WREG32_P (GFX_MACRO_BYPASS_CNTL ,0 , ~UPLL_BYPASS_CNTL ); + + r =radeon_uvd_send_upll_ctlreq (rdev,CG_UPLL_FUNC_CNTL ); +if (r) +return r; + +/* switch VCLK and DCLK selection */ +WREG32_P (CG_UPLL_FUNC_CNTL_2 , +VCLK_SRC_SEL (2 ) |DCLK_SRC_SEL (2 ), + ~(VCLK_SRC_SEL_MASK |DCLK_SRC_SEL_MASK )); + +mdelay (100 ); +return 0 ; }
drivers/gpu/drm/radeon/r600d.h +26 -0
@@ -1526,9 +1526,35 @@#define UVD_CONTEXT_ID 0xf6f4 +/* rs780 only */ +#define GFX_MACRO_BYPASS_CNTL 0x30c0 +#define SPLL_BYPASS_CNTL (1 << 0) +#define UPLL_BYPASS_CNTL (1 << 1) + +#define CG_UPLL_FUNC_CNTL 0x7e0 +# define UPLL_RESET_MASK 0x00000001 +# define UPLL_SLEEP_MASK 0x00000002 +# define UPLL_BYPASS_EN_MASK 0x00000004# define UPLL_CTLREQ_MASK 0x00000008 +# define UPLL_FB_DIV (x) ((x) << 4) +# define UPLL_FB_DIV_MASK 0x0000FFF0 +# define UPLL_REF_DIV (x) ((x) << 16) +# define UPLL_REF_DIV_MASK 0x003F0000 +# define UPLL_REFCLK_SRC_SEL_MASK 0x20000000# define UPLL_CTLACK_MASK 0x40000000# define UPLL_CTLACK2_MASK 0x80000000 +#define CG_UPLL_FUNC_CNTL_2 0x7e4 +# define UPLL_SW_HILEN (x) ((x) << 0) +# define UPLL_SW_LOLEN (x) ((x) << 4) +# define UPLL_SW_HILEN2 (x) ((x) << 8) +# define UPLL_SW_LOLEN2 (x) ((x) << 12) +# define UPLL_DIVEN_MASK 0x00010000 +# define UPLL_DIVEN2_MASK 0x00020000 +# define UPLL_SW_MASK 0x0003FFFF +# define VCLK_SRC_SEL (x) ((x) << 20) +# define VCLK_SRC_SEL_MASK 0x01F00000 +# define DCLK_SRC_SEL (x) ((x) << 25) +# define DCLK_SRC_SEL_MASK 0x3E000000/* * PM4
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/6 drm/radeon: add UVD support for older asics v4
In reply to Christian KönigFrom: Christian König <[email protected]>
v2: cleanup R600 support
v3: rebased on current drm-fixes-3.12
v4: rebased on drm-next-3.14
--- drivers/gpu/drm/radeon/r600.c | 31 +++++++++++++++ drivers/gpu/drm/radeon/r600d.h | 8 ++++ drivers/gpu/drm/radeon/radeon_asic.c | 15 +++++++ drivers/gpu/drm/radeon/radeon_asic.h | 3 ++ drivers/gpu/drm/radeon/uvd_v1_0.c | 77 ++++++++++++++++++++++++++++++++++++ drivers/gpu/drm/radeon/uvd_v2_2.c | 4 ++ 6 files changed, 138 insertions(+)
drivers/gpu/drm/radeon/r600.c +31 -0
@@ -2991,6 +2991,17 @@ static int r600_startup(struct radeon_device *rdev)return r; } + r =uvd_v1_0_resume (rdev); +if (!r) { + r =radeon_fence_driver_start_ring (rdev,R600_RING_TYPE_UVD_INDEX ); +if (r) { +dev_err (rdev->dev,"failed initializing UVD fences (%d).\n" , r); + } + } +if (r) { + rdev->ring[R600_RING_TYPE_UVD_INDEX ].ring_size =0 ; + } +/* Enable IRQ */ if (!rdev->irq.installed) { r =radeon_irq_kms_init (rdev);
@@ -3019,6 +3030,16 @@ static int r600_startup(struct radeon_device *rdev)if (r)return r; + ring = &rdev->ring[R600_RING_TYPE_UVD_INDEX ]; +if (ring->ring_size) { + r =radeon_ring_init (rdev, ring, ring->ring_size,0 , +RADEON_CP_PACKET2 ); +if (!r) + r =uvd_v1_0_init (rdev); +if (r) +DRM_ERROR ("radeon: failed initializing UVD (%d).\n" , r); + } + r =radeon_ib_pool_init (rdev);if (r) {dev_err (rdev->dev,"IB initialization failed (%d).\n" , r);
@@ -3078,6 +3099,8 @@ int r600_suspend(struct radeon_device *rdev)radeon_pm_suspend (rdev);r600_audio_fini (rdev);r600_cp_stop (rdev); +uvd_v1_0_fini (rdev); +radeon_uvd_suspend (rdev);r600_irq_suspend (rdev);radeon_wb_disable (rdev);r600_pcie_gart_disable (rdev);
@@ -3157,6 +3180,12 @@ int r600_init(struct radeon_device *rdev) rdev->ring[RADEON_RING_TYPE_GFX_INDEX ].ring_obj =NULL ;r600_ring_init (rdev, &rdev->ring[RADEON_RING_TYPE_GFX_INDEX ],1024 *1024 ); + r =radeon_uvd_init (rdev); +if (!r) { + rdev->ring[R600_RING_TYPE_UVD_INDEX ].ring_obj =NULL ; +r600_ring_init (rdev, &rdev->ring[R600_RING_TYPE_UVD_INDEX ],4096 ); + } + rdev->ih.ring_obj =NULL ;r600_ih_ring_init (rdev,64 *1024 );
@@ -3186,6 +3215,8 @@ void r600_fini(struct radeon_device *rdev)r600_audio_fini (rdev);r600_cp_fini (rdev);r600_irq_fini (rdev); +uvd_v1_0_fini (rdev); +radeon_uvd_fini (rdev);radeon_wb_fini (rdev);radeon_ib_pool_fini (rdev);radeon_irq_kms_fini (rdev);
drivers/gpu/drm/radeon/r600d.h +8 -0
@@ -1485,6 +1485,7 @@#define UVD_CGC_GATE 0xf4a8#define UVD_LMI_CTRL2 0xf4f4#define UVD_MASTINT_EN 0xf500 +#define UVD_FW_START 0xf51C#define UVD_LMI_ADDR_EXT 0xf594#define UVD_LMI_CTRL 0xf598#define UVD_LMI_SWAP_CNTL 0xf5b4
@@ -1497,6 +1498,13 @@#define UVD_MPC_SET_MUX 0xf5f4#define UVD_MPC_SET_ALU 0xf5f8 +#define UVD_VCPU_CACHE_OFFSET0 0xf608 +#define UVD_VCPU_CACHE_SIZE0 0xf60c +#define UVD_VCPU_CACHE_OFFSET1 0xf610 +#define UVD_VCPU_CACHE_SIZE1 0xf614 +#define UVD_VCPU_CACHE_OFFSET2 0xf618 +#define UVD_VCPU_CACHE_SIZE2 0xf61c +#define UVD_VCPU_CNTL 0xf660#define UVD_SOFT_RESET 0xf680#define RBC_SOFT_RESET (1<<0)
drivers/gpu/drm/radeon/radeon_asic.c +15 -0
@@ -965,6 +965,19 @@ static struct radeon_asic r600_asic = { }, }; +static struct radeon_asic_ring rv6xx_uvd_ring = { + .ib_execute = &uvd_v1_0_ib_execute, + .emit_fence = &uvd_v1_0_fence_emit, + .emit_semaphore = &uvd_v1_0_semaphore_emit, + .cs_parse = &radeon_uvd_cs_parse, + .ring_test = &uvd_v1_0_ring_test, + .ib_test = &uvd_v1_0_ib_test, + .is_lockup = &radeon_ring_test_lockup, + .get_rptr = &uvd_v1_0_get_rptr, + .get_wptr = &uvd_v1_0_get_wptr, + .set_wptr = &uvd_v1_0_set_wptr, +}; +static struct radeon_asic rv6xx_asic = { .init = &r600_init, .fini = &r600_fini,
@@ -984,6 +997,7 @@ static struct radeon_asic rv6xx_asic = { .ring = { [RADEON_RING_TYPE_GFX_INDEX] = &r600_gfx_ring, [R600_RING_TYPE_DMA_INDEX] = &r600_dma_ring, + [R600_RING_TYPE_UVD_INDEX] = &rv6xx_uvd_ring, }, .irq = { .set = &r600_irq_set,
@@ -1074,6 +1088,7 @@ static struct radeon_asic rs780_asic = { .ring = { [RADEON_RING_TYPE_GFX_INDEX] = &r600_gfx_ring, [R600_RING_TYPE_DMA_INDEX] = &r600_dma_ring, + [R600_RING_TYPE_UVD_INDEX] = &rv6xx_uvd_ring, }, .irq = { .set = &r600_irq_set,
drivers/gpu/drm/radeon/radeon_asic.h +3 -0
@@ -883,6 +883,7 @@ uint32_t uvd_v1_0_get_wptr(struct radeon_device *rdev, struct radeon_ring *ring);void uvd_v1_0_set_wptr (struct radeon_device *rdev,struct radeon_ring *ring); +int uvd_v1_0_resume (struct radeon_device *rdev);int uvd_v1_0_init (struct radeon_device *rdev);void uvd_v1_0_fini (struct radeon_device *rdev);
@@ -890,6 +891,8 @@ int uvd_v1_0_start(struct radeon_device *rdev);void uvd_v1_0_stop (struct radeon_device *rdev);int uvd_v1_0_ring_test (struct radeon_device *rdev,struct radeon_ring *ring); +void uvd_v1_0_fence_emit (struct radeon_device *rdev, +struct radeon_fence *fence);int uvd_v1_0_ib_test (struct radeon_device *rdev,struct radeon_ring *ring); bool uvd_v1_0_semaphore_emit(struct radeon_device *rdev, struct radeon_ring *ring,
drivers/gpu/drm/radeon/uvd_v1_0.c +77 -0
89 lines not on this page · raw message
drivers/gpu/drm/radeon/uvd_v2_2.c +4 -0
@@ -72,6 +72,10 @@ int uvd_v2_2_resume(struct radeon_device *rdev)uint32_t chip_id, size;int r; +/* RV770 uses V1.0 MC */ +if (rdev->family ==CHIP_RV770 ) +return uvd_v1_0_resume (rdev); + r =radeon_uvd_resume (rdev);if (r)return r;
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/6 drm/radeon: implement UVD hw workarounds for R6xx v3
In reply to Christian KönigFrom: Christian König <[email protected]>
Only the essentials, cause this hw generation is really buggy.
v2: start supporting RV670,RV620 and RV635 as well
v3: activate more workarounds
--- drivers/gpu/drm/radeon/r600d.h | 3 +++ drivers/gpu/drm/radeon/uvd_v1_0.c | 26 +++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/r600d.h +3 -0
@@ -330,6 +330,7 @@#define HDP_TILING_CONFIG 0x2F3C#define HDP_DEBUG1 0x2F34 +#define MC_CONFIG 0x2000#define MC_VM_AGP_TOP 0x2184#define MC_VM_AGP_BOT 0x2188#define MC_VM_AGP_BASE 0x218C
@@ -375,6 +376,8 @@#define MC_VM_SYSTEM_APERTURE_HIGH_ADDR 0x2194#define MC_VM_SYSTEM_APERTURE_DEFAULT_ADDR 0x2198 +#define RS_DQ_RD_RET_CONF 0x2348 +#define PA_CL_ENHANCE 0x8A14#define CLIP_VTX_REORDER_ENA (1 << 0)#define NUM_CLIP_SEQ (x) ((x) << 1)
drivers/gpu/drm/radeon/uvd_v1_0.c +25 -1
@@ -207,8 +207,32 @@ done:/* lower clocks again */ radeon_set_uvd_clocks (rdev,0 ,0 ); -if (!r) +if (!r) { +switch (rdev->family) { +case CHIP_RV610 : +case CHIP_RV630 : +case CHIP_RV620 : +/* 64byte granularity workaround */ +WREG32 (MC_CONFIG ,0 ); +WREG32 (MC_CONFIG ,1 <<4 ); +WREG32 (RS_DQ_RD_RET_CONF ,0x3f ); +WREG32 (MC_CONFIG ,0x1f ); + +/* fall through */ +case CHIP_RV670 : +case CHIP_RV635 : + +/* write clean workaround */ +WREG32_P (UVD_VCPU_CNTL ,0x10 , ~0x10 ); +break ; + +default : +/* TODO: Do we need more? */ +break ; + } +DRM_INFO ("UVD initialized successfully.\n" ); + }return r; }
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/6 drm/radeon: add UVD fw names for older asic
In reply to Christian KönigFrom: Christian König <[email protected]>
Activating the UVD support.
--- drivers/gpu/drm/radeon/radeon_uvd.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
drivers/gpu/drm/radeon/radeon_uvd.c +23 -0
@@ -40,12 +40,18 @@#define UVD_IDLE_TIMEOUT_MS 1000/* Firmware Names */ +#define FIRMWARE_R600 "radeon/R600_uvd.bin" +#define FIRMWARE_RS780 "radeon/RS780_uvd.bin" +#define FIRMWARE_RV770 "radeon/RV770_uvd.bin"#define FIRMWARE_RV710 "radeon/RV710_uvd.bin"#define FIRMWARE_CYPRESS "radeon/CYPRESS_uvd.bin"#define FIRMWARE_SUMO "radeon/SUMO_uvd.bin"#define FIRMWARE_TAHITI "radeon/TAHITI_uvd.bin"#define FIRMWARE_BONAIRE "radeon/BONAIRE_uvd.bin" +MODULE_FIRMWARE (FIRMWARE_R600 ); +MODULE_FIRMWARE (FIRMWARE_RS780 ); +MODULE_FIRMWARE (FIRMWARE_RV770 );MODULE_FIRMWARE (FIRMWARE_RV710 );MODULE_FIRMWARE (FIRMWARE_CYPRESS );MODULE_FIRMWARE (FIRMWARE_SUMO );
@@ -63,6 +69,23 @@ int radeon_uvd_init(struct radeon_device *rdev)INIT_DELAYED_WORK (&rdev->uvd.idle_work, radeon_uvd_idle_work_handler);switch (rdev->family) { +case CHIP_RV610 : +case CHIP_RV630 : +case CHIP_RV670 : +case CHIP_RV620 : +case CHIP_RV635 : + fw_name =FIRMWARE_R600 ; +break ; + +case CHIP_RS780 : +case CHIP_RS880 : + fw_name =FIRMWARE_RS780 ; +break ; + +case CHIP_RV770 : + fw_name =FIRMWARE_RV770 ; +break ; +case CHIP_RV710 :case CHIP_RV730 :case CHIP_RV740 :
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re:
In reply to Christian KönigThanks for this
Good work
Quoted 18 lines · Christian König
Hello everyone,
the following patches add UVD support for older ASICs (RV6xx, RS[78]80, RV7[79]0). For everybody wanting to test it I've also uploaded a branch to FDO:
http://cgit.freedesktop.org/~deathsimple/linux/log/?h=uvd-r600-releaseAdditionally to the patches you need UVD firmware as well, which can be found at the usual location:
http://people.freedesktop.org/~agd5f/radeon_ucode/A small Mesa patch is needed as well, cause the older hardware doesn't support field based output of video frames. So unfortunately VDPAU/OpenGL interop won't work either.
We can only provide best effort support for those older ASICs, but at least on my RS[78]80 based laptop it seems to work perfectly fine.
Quoted 8 lines
Happy testing,
Christian._______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re:
Let me know if it works for you, cause we don't really have any hardware any more to test it.
Christian.
Am 24.08.2014 um 15:34 schrieb Mike Lothian:
Quoted 27 lines
Thanks for this
Good work
On 24 Aug 2014 14:15, "Christian König" <[email protected] <mailto:[email protected]>> wrote:
Hello everyone,
the following patches add UVD support for older ASICs (RV6xx, RS[78]80, RV7[79]0). For everybody wanting to test it I've also uploaded a branch to FDO:
http://cgit.freedesktop.org/~deathsimple/linux/log/?h=uvd-r600-release
<http://cgit.freedesktop.org/%7Edeathsimple/linux/log/?h=uvd-r600-release>Additionally to the patches you need UVD firmware as well, which can be found at the usual location:
http://people.freedesktop.org/~agd5f/radeon_ucode/
<http://people.freedesktop.org/%7Eagd5f/radeon_ucode/>A small Mesa patch is needed as well, cause the older hardware doesn't support field based output of video frames. So unfortunately VDPAU/OpenGL interop won't work either.
We can only provide best effort support for those older ASICs, but at least on my RS[78]80 based laptop it seems to work perfectly fine.
Quoted 9 lines
Happy testing,
Christian._______________________________________________
dri-devel mailing list
[email protected]
<mailto:[email protected]>
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: (UVD RS780 first impression)
Hi,
first of all: Thanks a lot for putting effort into this sort of ancient hardware, I'm really surprised in a very positive way to see open source UVD support happen on old R600 GPUs. I gave the recently posted patches a shot an here is my first impression:
Kernel from uvd-r600-release branch compiles and boots fine
(I also included the 3.16.1 and Con Kolivas' ck/BFS patch as well, I hope that was OK; I could give it a try without modifications as well, if that would help.)
Mesa with the posted patch applied also compiled fine
First tests with mplayer were not so successful, unfortunately:
I tried "big buck bunny" with both software and hardwarde decoding.
Software looks OK (as expected). Hardware decoding seems to work, mplayer doesn't complain and CPU usage also goes down significantly, the resulting image is distorted, however. I tried to get a screen shots to illustrate the issue, see attachment. Looks like part of the top is found at the bottom, and look sort of like an interlaced image.
This test was done on an RS780 / HD3200 desktop chipset.
Maybe this helps you?
Best regards,
Stefan
P.S.:
some more info:
dmesg shows that the UVD block is initialized as expected (after one error message before, however, don't know if that's expected or not):
[ 4.275315] [drm:uvd_v1_0_start] *ERROR* UVD not responding, trying to reset the VCPU!!!
[ 4.295533] [drm] UVD initialized successfully.
vdpauinfo output also looks good to me:
display: :0 screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0
Video surface:
name width height types
-------------------------------------------
420 8192 8192 NV12 YV12 422 8192 8192 UYVY YUYV 444 8192 8192 Y8U8V8A8 V8U8Y8A8
Decoder capabilities:
name level macbs width height
-------------------------------------------
MPEG1 0 9216 2048 1152 MPEG2_SIMPLE 3 9216 2048 1152 MPEG2_MAIN 3 9216 2048 1152 H264_BASELINE 41 9216 2048 1152 H264_MAIN 41 9216 2048 1152 H264_HIGH 41 9216 2048 1152 VC1_ADVANCED 4 9216 2048 1152
Output surface:
name width height nat types
----------------------------------------------------
B8G8R8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 R8G8B8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 R10G10B10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 B10G10R10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
Bitmap surface:
name width height
------------------------------
B8G8R8A8 8192 8192 R8G8B8A8 8192 8192 R10G10B10A2 8192 8192 B10G10R10A2 8192 8192 A8 8192 8192
Video mixer:
feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y DEINTERLACE_TEMPORAL_SPATIAL - INVERSE_TELECINE - NOISE_REDUCTION y SHARPNESS y LUMA_KEY - HIGH QUALITY SCALING - L1 - HIGH QUALITY SCALING - L2 - HIGH QUALITY SCALING - L3 - HIGH QUALITY SCALING - L4 - HIGH QUALITY SCALING - L5 - HIGH QUALITY SCALING - L6 - HIGH QUALITY SCALING - L7 - HIGH QUALITY SCALING - L8 - HIGH QUALITY SCALING - L9 -
parameter name sup min max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH y 48 2048 VIDEO_SURFACE_HEIGHT y 48 1152 CHROMA_TYPE y LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y CSC_MATRIX y NOISE_REDUCTION_LEVEL y 0.00 1.00 SHARPNESS_LEVEL y -1.00 1.00 LUMA_KEY_MIN_LUMA y LUMA_KEY_MAX_LUMA y
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: (UVD RS780 first impression)
Quoted 14 lines · Stefan Lange
Hi,
first of all: Thanks a lot for putting effort into this sort of ancient hardware, I'm really surprised in a very positive way to see open source UVD support happen on old R600 GPUs. I gave the recently posted patches a shot an here is my first impression:
Kernel from uvd-r600-release branch compiles and boots fine (I also included the 3.16.1 and Con Kolivas' ck/BFS patch as well, I hope that was OK; I could give it a try without modifications as well, if that would help.)
Mesa with the posted patch applied also compiled fine
Quoted 8 lines
First tests with mplayer were not so successful, unfortunately:
I tried "big buck bunny" with both software and hardwarde decoding. Software looks OK (as expected). Hardware decoding seems to work, mplayer doesn't complain and CPU usage also goes down significantly, the resulting image is distorted, however.
I tried to get a screen shots to illustrate the issue, see attachment. Looks like part of the top is found at the bottom, and look sort of like an interlaced image.
Sounds like you're missing http://cgit.freedesktop.org/mesa/mesa/commit/?id=80771e47b6c1e47ab55f17311e1d4e227a9eb3d8 .
Signature · 2 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer
Re: (UVD RS780 first impression)
Am 27.08.2014 um 05:40 schrieb Michel Dänzer:
Quoted 24 lines · Stefan Lange
Quoted 14 lines
Hi,
first of all: Thanks a lot for putting effort into this sort of ancient hardware, I'm really surprised in a very positive way to see open source UVD support happen on old R600 GPUs. I gave the recently posted patches a shot an here is my first impression:
Kernel from uvd-r600-release branch compiles and boots fine (I also included the 3.16.1 and Con Kolivas' ck/BFS patch as well, I hope that was OK; I could give it a try without modifications as well, if that would help.)
Mesa with the posted patch applied also compiled fine
Quoted 8 lines
First tests with mplayer were not so successful, unfortunately:
I tried "big buck bunny" with both software and hardwarde decoding. Software looks OK (as expected). Hardware decoding seems to work, mplayer doesn't complain and CPU usage also goes down significantly, the resulting image is distorted, however.
I tried to get a screen shots to illustrate the issue, see attachment. Looks like part of the top is found at the bottom, and look sort of like an interlaced image.
Quoted 1 line
Sounds like you're missing http://cgit.freedesktop.org/mesa/mesa/commit/?id=80771e47b6c1e47ab55f17311e1d4e227a9eb3d8 .
Agree, that is exactly the expected behavior if you don't use the necessary mesa patch.
Please make sure you actually installed mesa into the correct path etc....
Christian.
Re: (UVD RS780 first impression)
[...]
Quoted 4 lines
Quoted 3 lines
Sounds like you're missing
http://cgit.freedesktop.org/mesa/mesa/commit/?id=80771e47b6c1e47ab55f17311e1d4e227a9eb3d8
.
Quoted 8 lines
Agree, that is exactly the expected behavior if you don't use the necessary mesa patch.
Please make sure you actually installed mesa into the correct path etc....
Christian.
Thanks a lot to both of you for your quick reply and the hints. I haven't had the chance yet to have another look due to lack of time. I'll give it another try during the weekend, trying to make sure that the patched mesa is actually used.
Stefan
Re: (UVD RS780 first impression)
In reply to Christian KönigHi all,
just for the sake of completeness:
As you already suspected the updated mesa libraries were not actually used on my system by mplayer before. I now managed to fix this and correctly install the updated mesa so that it takes precedence.
Everything seems to work fine now (at least judging from some quick testing).
Thanks again for the great support!
Best,
Stefan
Re:
In reply to Christian KönigQuoted 2 lines · Christian König
Let me know if it works for you, cause we don't really have any hardware any more to test it.
I've tested your patch series today (using drm-next-3.18 from ~agd5f/linux) on a RS780D/Radeon HD 3300 system with a couple of H264 videos. While it sometimes works as expected, it stalled the GPU far too often to be usable. The stalls are not recoverable and the machine ends up with a black sreen, but still accepts SysRq keyboard inputs.
Here are some logs:
vdpauinfo:
display: :0 screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0
Video surface:
name width height types
-------------------------------------------
420 8192 8192 NV12 YV12 422 8192 8192 UYVY YUYV 444 8192 8192 Y8U8V8A8 V8U8Y8A8
Decoder capabilities:
name level macbs width height
-------------------------------------------
MPEG1 0 9216 2048 1152 MPEG2_SIMPLE 3 9216 2048 1152 MPEG2_MAIN 3 9216 2048 1152 H264_BASELINE 41 9216 2048 1152 H264_MAIN 41 9216 2048 1152 H264_HIGH 41 9216 2048 1152 VC1_ADVANCED 4 9216 2048 1152
Output surface:
name width height nat types
----------------------------------------------------
B8G8R8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 R8G8B8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 R10G10B10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 B10G10R10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
Bitmap surface:
name width height
------------------------------
B8G8R8A8 8192 8192 R8G8B8A8 8192 8192 R10G10B10A2 8192 8192 B10G10R10A2 8192 8192 A8 8192 8192
Video mixer:
feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y DEINTERLACE_TEMPORAL_SPATIAL - INVERSE_TELECINE - NOISE_REDUCTION y SHARPNESS y LUMA_KEY - HIGH QUALITY SCALING - L1 - HIGH QUALITY SCALING - L2 - HIGH QUALITY SCALING - L3 - HIGH QUALITY SCALING - L4 - HIGH QUALITY SCALING - L5 - HIGH QUALITY SCALING - L6 - HIGH QUALITY SCALING - L7 - HIGH QUALITY SCALING - L8 - HIGH QUALITY SCALING - L9 -
parameter name sup min max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH y 48 2048 VIDEO_SURFACE_HEIGHT y 48 1152 CHROMA_TYPE y LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y CSC_MATRIX y NOISE_REDUCTION_LEVEL y 0.00 1.00 SHARPNESS_LEVEL y -1.00 1.00 LUMA_KEY_MIN_LUMA y LUMA_KEY_MAX_LUMA y
Sep 7 14:03:45 x4 kernel: [drm] Initialized drm 1.1.0 20060810 Sep 7 14:03:45 x4 kernel: [drm] radeon kernel modesetting enabled. Sep 7 14:03:45 x4 kernel: [drm] initializing kernel modesetting (RS780 0x1002:0x9614 0x1043:0x834D). Sep 7 14:03:45 x4 kernel: [drm] register mmio base: 0xFBEE0000 Sep 7 14:03:45 x4 kernel: [drm] register mmio size: 65536 Sep 7 14:03:45 x4 kernel: ATOM BIOS: 113 Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: VRAM: 128M 0x00000000C0000000 - 0x00000000C7FFFFFF (128M used) Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF Sep 7 14:03:45 x4 kernel: [drm] Detected VRAM RAM=128M, BAR=128M Sep 7 14:03:45 x4 kernel: [drm] RAM width 32bits DDR Sep 7 14:03:45 x4 kernel: [TTM] Zone kernel: Available graphics memory: 4083350 kiB Sep 7 14:03:45 x4 kernel: [TTM] Zone dma32: Available graphics memory: 2097152 kiB Sep 7 14:03:45 x4 kernel: [TTM] Initializing pool allocator Sep 7 14:03:45 x4 kernel: [TTM] Initializing DMA pool allocator Sep 7 14:03:45 x4 kernel: [drm] radeon: 128M of VRAM memory ready Sep 7 14:03:45 x4 kernel: [drm] radeon: 512M of GTT memory ready. Sep 7 14:03:45 x4 kernel: [drm] Loading RS780 Microcode Sep 7 14:03:45 x4 kernel: == power state 0 == Sep 7 14:03:45 x4 kernel: ui class: none Sep 7 14:03:45 x4 kernel: internal class: boot Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: status: c r b Sep 7 14:03:45 x4 kernel: == power state 1 == Sep 7 14:03:45 x4 kernel: ui class: performance Sep 7 14:03:45 x4 kernel: internal class: none Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: status: Sep 7 14:03:45 x4 kernel: == power state 2 == Sep 7 14:03:45 x4 kernel: ui class: none Sep 7 14:03:45 x4 kernel: internal class: uvd Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:03:45 x4 kernel: status: Sep 7 14:03:45 x4 kernel: [drm] radeon: dpm initialized Sep 7 14:03:45 x4 kernel: [drm] GART: num cpu pages 131072, num gpu pages 131072 Sep 7 14:03:45 x4 kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000). Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: WB enabled Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8800db8dcc00 Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0xffffc90000116038 Sep 7 14:03:45 x4 kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). Sep 7 14:03:45 x4 kernel: [drm] Driver supports precise vblank timestamp query. Sep 7 14:03:45 x4 kernel: [drm] radeon: irq initialized. Sep 7 14:03:45 x4 kernel: [drm] ring test on 0 succeeded in 1 usecs Sep 7 14:03:45 x4 kernel: [drm] ring test on 5 succeeded in 1 usecs Sep 7 14:03:45 x4 kernel: [drm] UVD initialized successfully. Sep 7 14:03:45 x4 kernel: [drm] ib test on ring 0 succeeded in 0 usecs Sep 7 14:03:45 x4 kernel: [drm] ib test on ring 5 succeeded Sep 7 14:03:45 x4 kernel: [drm] Radeon Display Connectors Sep 7 14:03:45 x4 kernel: [drm] Connector 0: Sep 7 14:03:45 x4 kernel: [drm] VGA-1 Sep 7 14:03:45 x4 kernel: [drm] DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c Sep 7 14:03:45 x4 kernel: [drm] Encoders: Sep 7 14:03:45 x4 kernel: [drm] CRT1: INTERNAL_KLDSCP_DAC1 Sep 7 14:03:45 x4 kernel: [drm] Connector 1: Sep 7 14:03:45 x4 kernel: [drm] DVI-D-1 Sep 7 14:03:45 x4 kernel: [drm] HPD3 Sep 7 14:03:45 x4 kernel: [drm] DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c Sep 7 14:03:45 x4 kernel: [drm] Encoders: Sep 7 14:03:45 x4 kernel: [drm] DFP3: INTERNAL_KLDSCP_LVTMA Sep 7 14:03:45 x4 kernel: switching from power state: Sep 7 14:03:45 x4 kernel: ui class: none Sep 7 14:03:45 x4 kernel: internal class: boot Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: status: c b Sep 7 14:03:45 x4 kernel: switching to power state: Sep 7 14:03:45 x4 kernel: ui class: performance Sep 7 14:03:45 x4 kernel: internal class: none Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: status: r Sep 7 14:03:45 x4 kernel: [drm] fb mappable at 0xF0359000 Sep 7 14:03:45 x4 kernel: [drm] vram apper at 0xF0000000 Sep 7 14:03:45 x4 kernel: [drm] size 7299072 Sep 7 14:03:45 x4 kernel: [drm] fb depth is 24 Sep 7 14:03:45 x4 kernel: [drm] pitch is 6912 Sep 7 14:03:45 x4 kernel: fbcon: radeondrmfb (fb0) is primary device Sep 7 14:03:45 x4 kernel: Console: switching to colour frame buffer device 131x105 Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: registered panic notifier Sep 7 14:03:45 x4 kernel: tsc: Refined TSC clocksource calibration: 3210.826 MHz Sep 7 14:03:45 x4 kernel: [drm] Initialized radeon 2.40.0 20080528 for 0000:01:05.0 on minor 0 ... Sep 7 14:20:37 x4 kernel: switching to power state: Sep 7 14:20:37 x4 kernel: ui class: none Sep 7 14:20:37 x4 kernel: internal class: uvd Sep 7 14:20:37 x4 kernel: caps: video Sep 7 14:20:37 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:20:37 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:20:37 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:20:37 x4 kernel: status: r Sep 7 14:20:54 x4 kernel: switching from power state: Sep 7 14:20:54 x4 kernel: ui class: none Sep 7 14:20:54 x4 kernel: internal class: uvd Sep 7 14:20:54 x4 kernel: caps: video Sep 7 14:20:54 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:20:54 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:20:54 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:20:54 x4 kernel: status: c Sep 7 14:20:54 x4 kernel: switching to power state: Sep 7 14:20:54 x4 kernel: ui class: performance Sep 7 14:20:54 x4 kernel: internal class: none Sep 7 14:20:54 x4 kernel: caps: video Sep 7 14:20:54 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:20:54 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:20:54 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:20:54 x4 kernel: status: r Sep 7 14:21:02 x4 kernel: switching from power state: Sep 7 14:21:02 x4 kernel: ui class: performance Sep 7 14:21:02 x4 kernel: internal class: none Sep 7 14:21:02 x4 kernel: caps: video Sep 7 14:21:02 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:21:02 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:21:02 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:21:02 x4 kernel: status: c Sep 7 14:21:02 x4 kernel: switching to power state: Sep 7 14:21:02 x4 kernel: ui class: none Sep 7 14:21:02 x4 kernel: internal class: uvd Sep 7 14:21:02 x4 kernel: caps: video Sep 7 14:21:02 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:21:02 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:21:02 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:21:02 x4 kernel: status: r Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10106msec Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000072ac last fence id 0x00000000000072b4 on ring 0) Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: Saved 377 dwords of commands on ring 0. Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: GPU softreset: 0x00000099 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA00034AF Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20044040 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000004 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000002 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00005087 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80098645 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008020_GRBM_SOFT_RESET=0x00007FEF Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: SRBM_SOFT_RESET=0x00008100 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA0003030 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20048040 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000000 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000000 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00000000 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80100000 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: GPU reset succeeded, trying to resume Sep 7 14:21:13 x4 kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000). Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: WB enabled Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8800db8dcc00 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0xffffc90000116038 Sep 7 14:21:13 x4 kernel: [drm] ring test on 0 succeeded in 1 usecs Sep 7 14:21:13 x4 kernel: [drm] ring test on 5 succeeded in 1 usecs Sep 7 14:21:13 x4 kernel: [drm] UVD initialized successfully. Sep 7 14:21:13 x4 kernel: switching from power state: Sep 7 14:21:13 x4 kernel: ui class: none Sep 7 14:21:13 x4 kernel: internal class: boot Sep 7 14:21:13 x4 kernel: caps: video Sep 7 14:21:13 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:21:13 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:21:13 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:21:13 x4 kernel: status: c b Sep 7 14:21:13 x4 kernel: switching to power state: Sep 7 14:21:13 x4 kernel: ui class: none Sep 7 14:21:13 x4 kernel: internal class: uvd Sep 7 14:21:13 x4 kernel: caps: video Sep 7 14:21:13 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:21:13 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:21:13 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:21:13 x4 kernel: status: r Sep 7 14:21:20 x4 kernel: SysRq : Emergency Sync (new boot) Sep 7 14:44:49 x4 kernel: switching from power state: Sep 7 14:44:49 x4 kernel: ui class: performance Sep 7 14:44:49 x4 kernel: internal class: none Sep 7 14:44:49 x4 kernel: caps: video Sep 7 14:44:49 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:44:49 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:44:49 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:44:49 x4 kernel: status: c Sep 7 14:44:49 x4 kernel: switching to power state: Sep 7 14:44:49 x4 kernel: ui class: none Sep 7 14:44:49 x4 kernel: internal class: uvd Sep 7 14:44:49 x4 kernel: caps: video Sep 7 14:44:49 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:44:49 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:44:49 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:44:49 x4 kernel: status: r Sep 7 14:44:59 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 10000msec Sep 7 14:44:59 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000eac last fence id 0x0000000000000eaf on ring 5) Sep 7 14:44:59 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10466msec Sep 7 14:44:59 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000064ff last fence id 0x0000000000006504 on ring 0) Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 10500msec Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000eac last fence id 0x0000000000000eaf on ring 5) Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10966msec Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000064ff last fence id 0x0000000000006504 on ring 0) Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 11000msec ... Sep 7 14:45:17 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000eac last fence id 0x0000000000000eaf on ring 5) Sep 7 14:45:17 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 28466msec Sep 7 14:45:17 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000064ff last fence id 0x0000000000006504 on ring 0) Sep 7 14:45:18 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 28500msec Sep 7 14:45:18 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000eac last fence id 0x0000000000000eaf on ring 5) Sep 7 14:45:18 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 28966msec Sep 7 14:45:18 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000064ff last fence id 0x0000000000006504 on ring 0) Sep 7 14:45:18 x4 kernel: SysRq : Emergency Sync (new boot) Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 10000msec Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10000msec Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000001ed last fence id 0x00000000000001f6 on ring 0) Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x000000000000000b last fence id 0x000000000000000f on ring 5) Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: Saved 409 dwords of commands on ring 0. Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: GPU softreset: 0x00000099 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA00034E0 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20045040 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x01000004 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00200002 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00005087 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x808D8645 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008020_GRBM_SOFT_RESET=0x00007FEF Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: SRBM_SOFT_RESET=0x00008100 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA0003030 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20048040 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000000 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000000 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00000000 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80100000 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: GPU reset succeeded, trying to resume Sep 7 14:48:15 x4 kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000). Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: WB enabled Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8800db8dcc00 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0xffffc90000116038 Sep 7 14:48:15 x4 kernel: [drm] ring test on 0 succeeded in 1 usecs Sep 7 14:48:15 x4 kernel: [drm] ring test on 5 succeeded in 1 usecs Sep 7 14:48:15 x4 kernel: [drm] UVD initialized successfully. Sep 7 14:48:15 x4 kernel: switching from power state: Sep 7 14:48:15 x4 kernel: ui class: none Sep 7 14:48:15 x4 kernel: internal class: boot Sep 7 14:48:15 x4 kernel: caps: video Sep 7 14:48:15 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:48:15 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:48:15 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:48:15 x4 kernel: status: c b Sep 7 14:48:15 x4 kernel: switching to power state: Sep 7 14:48:15 x4 kernel: ui class: none Sep 7 14:48:15 x4 kernel: internal class: uvd Sep 7 14:48:15 x4 kernel: caps: video Sep 7 14:48:15 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:48:15 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:48:15 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:48:15 x4 kernel: status: r Sep 7 14:48:15 x4 kernel: SysRq : Emergency Sync (new boot) Sep 7 14:53:20 x4 kernel: switching to power state: Sep 7 14:53:20 x4 kernel: ui class: none Sep 7 14:53:20 x4 kernel: internal class: uvd Sep 7 14:53:20 x4 kernel: caps: video Sep 7 14:53:20 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:53:20 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:53:20 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:53:20 x4 kernel: status: r Sep 7 14:53:30 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10050msec Sep 7 14:53:30 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000596 last fence id 0x00000000000005a3 on ring 0) Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: Saved 601 dwords of commands on ring 0. Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: GPU softreset: 0x00000088 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA00030B0 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20045040 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000004 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000002 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00005087 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80098645 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008020_GRBM_SOFT_RESET=0x00004001 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: SRBM_SOFT_RESET=0x00008100 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA0003030 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20048040 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000000 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000000 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00000000 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80100000 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: GPU reset succeeded, trying to resume Sep 7 14:53:31 x4 kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000). Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: WB enabled Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8800db8dcc00 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0xffffc90000116038 Sep 7 14:53:31 x4 kernel: [drm] ring test on 0 succeeded in 1 usecs Sep 7 14:53:31 x4 kernel: [drm] ring test on 5 succeeded in 1 usecs Sep 7 14:53:31 x4 kernel: [drm] UVD initialized successfully. Sep 7 14:53:31 x4 kernel: switching from power state: Sep 7 14:53:31 x4 kernel: ui class: none Sep 7 14:53:31 x4 kernel: internal class: boot Sep 7 14:53:31 x4 kernel: caps: video Sep 7 14:53:31 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:53:31 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:53:31 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:53:31 x4 kernel: status: c b Sep 7 14:53:31 x4 kernel: switching to power state: Sep 7 14:53:31 x4 kernel: ui class: none Sep 7 14:53:31 x4 kernel: internal class: uvd Sep 7 14:53:31 x4 kernel: caps: video Sep 7 14:53:31 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:53:31 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:53:31 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:53:31 x4 kernel: status: r Sep 7 14:53:39 x4 kernel: SysRq : Emergency Sync
Signature · 1 line
Markus
Re:
Quoted 9 lines · Markus Trippelsdorf
Quoted 2 lines · Christian König
Let me know if it works for you, cause we don't really have any hardware any more to test it.
I've tested your patch series today (using drm-next-3.18 from ~agd5f/linux) on a RS780D/Radeon HD 3300 system with a couple of H264 videos. While it sometimes works as expected, it stalled the GPU far too often to be usable. The stalls are not recoverable and the machine ends up with a black sreen, but still accepts SysRq keyboard inputs.
Does it work any better if dpm is disabled?
Alex
Quoted 408 lines
Here are some logs:
vdpauinfo:
display: :0 screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0Video surface:
name width height types
-------------------------------------------420 8192 8192 NV12 YV12 422 8192 8192 UYVY YUYV 444 8192 8192 Y8U8V8A8 V8U8Y8A8Decoder capabilities:
name level macbs width height
-------------------------------------------MPEG1 0 9216 2048 1152 MPEG2_SIMPLE 3 9216 2048 1152 MPEG2_MAIN 3 9216 2048 1152 H264_BASELINE 41 9216 2048 1152 H264_MAIN 41 9216 2048 1152 H264_HIGH 41 9216 2048 1152 VC1_ADVANCED 4 9216 2048 1152Output surface:
name width height nat types
----------------------------------------------------B8G8R8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 R8G8B8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 R10G10B10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 B10G10R10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8Bitmap surface:
name width height
------------------------------B8G8R8A8 8192 8192 R8G8B8A8 8192 8192 R10G10B10A2 8192 8192 B10G10R10A2 8192 8192 A8 8192 8192Video mixer:
feature name sup
------------------------------------DEINTERLACE_TEMPORAL y DEINTERLACE_TEMPORAL_SPATIAL - INVERSE_TELECINE - NOISE_REDUCTION y SHARPNESS y LUMA_KEY - HIGH QUALITY SCALING - L1 - HIGH QUALITY SCALING - L2 - HIGH QUALITY SCALING - L3 - HIGH QUALITY SCALING - L4 - HIGH QUALITY SCALING - L5 - HIGH QUALITY SCALING - L6 - HIGH QUALITY SCALING - L7 - HIGH QUALITY SCALING - L8 - HIGH QUALITY SCALING - L9 -parameter name sup min max
-----------------------------------------------------VIDEO_SURFACE_WIDTH y 48 2048 VIDEO_SURFACE_HEIGHT y 48 1152 CHROMA_TYPE y LAYERS y 0 4attribute name sup min max
-----------------------------------------------------BACKGROUND_COLOR y CSC_MATRIX y NOISE_REDUCTION_LEVEL y 0.00 1.00 SHARPNESS_LEVEL y -1.00 1.00 LUMA_KEY_MIN_LUMA y LUMA_KEY_MAX_LUMA ySep 7 14:03:45 x4 kernel: [drm] Initialized drm 1.1.0 20060810 Sep 7 14:03:45 x4 kernel: [drm] radeon kernel modesetting enabled. Sep 7 14:03:45 x4 kernel: [drm] initializing kernel modesetting (RS780 0x1002:0x9614 0x1043:0x834D). Sep 7 14:03:45 x4 kernel: [drm] register mmio base: 0xFBEE0000 Sep 7 14:03:45 x4 kernel: [drm] register mmio size: 65536 Sep 7 14:03:45 x4 kernel: ATOM BIOS: 113 Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: VRAM: 128M 0x00000000C0000000 - 0x00000000C7FFFFFF (128M used) Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF Sep 7 14:03:45 x4 kernel: [drm] Detected VRAM RAM=128M, BAR=128M Sep 7 14:03:45 x4 kernel: [drm] RAM width 32bits DDR Sep 7 14:03:45 x4 kernel: [TTM] Zone kernel: Available graphics memory: 4083350 kiB Sep 7 14:03:45 x4 kernel: [TTM] Zone dma32: Available graphics memory: 2097152 kiB Sep 7 14:03:45 x4 kernel: [TTM] Initializing pool allocator Sep 7 14:03:45 x4 kernel: [TTM] Initializing DMA pool allocator Sep 7 14:03:45 x4 kernel: [drm] radeon: 128M of VRAM memory ready Sep 7 14:03:45 x4 kernel: [drm] radeon: 512M of GTT memory ready. Sep 7 14:03:45 x4 kernel: [drm] Loading RS780 Microcode Sep 7 14:03:45 x4 kernel: == power state 0 == Sep 7 14:03:45 x4 kernel: ui class: none Sep 7 14:03:45 x4 kernel: internal class: boot Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: status: c r b Sep 7 14:03:45 x4 kernel: == power state 1 == Sep 7 14:03:45 x4 kernel: ui class: performance Sep 7 14:03:45 x4 kernel: internal class: none Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: status: Sep 7 14:03:45 x4 kernel: == power state 2 == Sep 7 14:03:45 x4 kernel: ui class: none Sep 7 14:03:45 x4 kernel: internal class: uvd Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:03:45 x4 kernel: status: Sep 7 14:03:45 x4 kernel: [drm] radeon: dpm initialized Sep 7 14:03:45 x4 kernel: [drm] GART: num cpu pages 131072, num gpu pages 131072 Sep 7 14:03:45 x4 kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000). Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: WB enabled Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8800db8dcc00 Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0xffffc90000116038 Sep 7 14:03:45 x4 kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). Sep 7 14:03:45 x4 kernel: [drm] Driver supports precise vblank timestamp query. Sep 7 14:03:45 x4 kernel: [drm] radeon: irq initialized. Sep 7 14:03:45 x4 kernel: [drm] ring test on 0 succeeded in 1 usecs Sep 7 14:03:45 x4 kernel: [drm] ring test on 5 succeeded in 1 usecs Sep 7 14:03:45 x4 kernel: [drm] UVD initialized successfully. Sep 7 14:03:45 x4 kernel: [drm] ib test on ring 0 succeeded in 0 usecs Sep 7 14:03:45 x4 kernel: [drm] ib test on ring 5 succeeded Sep 7 14:03:45 x4 kernel: [drm] Radeon Display Connectors Sep 7 14:03:45 x4 kernel: [drm] Connector 0: Sep 7 14:03:45 x4 kernel: [drm] VGA-1 Sep 7 14:03:45 x4 kernel: [drm] DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c Sep 7 14:03:45 x4 kernel: [drm] Encoders: Sep 7 14:03:45 x4 kernel: [drm] CRT1: INTERNAL_KLDSCP_DAC1 Sep 7 14:03:45 x4 kernel: [drm] Connector 1: Sep 7 14:03:45 x4 kernel: [drm] DVI-D-1 Sep 7 14:03:45 x4 kernel: [drm] HPD3 Sep 7 14:03:45 x4 kernel: [drm] DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c Sep 7 14:03:45 x4 kernel: [drm] Encoders: Sep 7 14:03:45 x4 kernel: [drm] DFP3: INTERNAL_KLDSCP_LVTMA Sep 7 14:03:45 x4 kernel: switching from power state: Sep 7 14:03:45 x4 kernel: ui class: none Sep 7 14:03:45 x4 kernel: internal class: boot Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: status: c b Sep 7 14:03:45 x4 kernel: switching to power state: Sep 7 14:03:45 x4 kernel: ui class: performance Sep 7 14:03:45 x4 kernel: internal class: none Sep 7 14:03:45 x4 kernel: caps: video Sep 7 14:03:45 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:03:45 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:03:45 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:03:45 x4 kernel: status: r Sep 7 14:03:45 x4 kernel: [drm] fb mappable at 0xF0359000 Sep 7 14:03:45 x4 kernel: [drm] vram apper at 0xF0000000 Sep 7 14:03:45 x4 kernel: [drm] size 7299072 Sep 7 14:03:45 x4 kernel: [drm] fb depth is 24 Sep 7 14:03:45 x4 kernel: [drm] pitch is 6912 Sep 7 14:03:45 x4 kernel: fbcon: radeondrmfb (fb0) is primary device Sep 7 14:03:45 x4 kernel: Console: switching to colour frame buffer device 131x105 Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: fb0: radeondrmfb frame buffer device Sep 7 14:03:45 x4 kernel: radeon 0000:01:05.0: registered panic notifier Sep 7 14:03:45 x4 kernel: tsc: Refined TSC clocksource calibration: 3210.826 MHz Sep 7 14:03:45 x4 kernel: [drm] Initialized radeon 2.40.0 20080528 for 0000:01:05.0 on minor 0 ... Sep 7 14:20:37 x4 kernel: switching to power state: Sep 7 14:20:37 x4 kernel: ui class: none Sep 7 14:20:37 x4 kernel: internal class: uvd Sep 7 14:20:37 x4 kernel: caps: video Sep 7 14:20:37 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:20:37 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:20:37 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:20:37 x4 kernel: status: r Sep 7 14:20:54 x4 kernel: switching from power state: Sep 7 14:20:54 x4 kernel: ui class: none Sep 7 14:20:54 x4 kernel: internal class: uvd Sep 7 14:20:54 x4 kernel: caps: video Sep 7 14:20:54 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:20:54 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:20:54 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:20:54 x4 kernel: status: c Sep 7 14:20:54 x4 kernel: switching to power state: Sep 7 14:20:54 x4 kernel: ui class: performance Sep 7 14:20:54 x4 kernel: internal class: none Sep 7 14:20:54 x4 kernel: caps: video Sep 7 14:20:54 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:20:54 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:20:54 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:20:54 x4 kernel: status: r Sep 7 14:21:02 x4 kernel: switching from power state: Sep 7 14:21:02 x4 kernel: ui class: performance Sep 7 14:21:02 x4 kernel: internal class: none Sep 7 14:21:02 x4 kernel: caps: video Sep 7 14:21:02 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:21:02 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:21:02 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:21:02 x4 kernel: status: c Sep 7 14:21:02 x4 kernel: switching to power state: Sep 7 14:21:02 x4 kernel: ui class: none Sep 7 14:21:02 x4 kernel: internal class: uvd Sep 7 14:21:02 x4 kernel: caps: video Sep 7 14:21:02 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:21:02 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:21:02 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:21:02 x4 kernel: status: r Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10106msec Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000072ac last fence id 0x00000000000072b4 on ring 0) Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: Saved 377 dwords of commands on ring 0. Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: GPU softreset: 0x00000099 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA00034AF Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20044040 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000004 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000002 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00005087 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80098645 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008020_GRBM_SOFT_RESET=0x00007FEF Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: SRBM_SOFT_RESET=0x00008100 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA0003030 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20048040 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000000 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000000 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00000000 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80100000 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: GPU reset succeeded, trying to resume Sep 7 14:21:13 x4 kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000). Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: WB enabled Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8800db8dcc00 Sep 7 14:21:13 x4 kernel: radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0xffffc90000116038 Sep 7 14:21:13 x4 kernel: [drm] ring test on 0 succeeded in 1 usecs Sep 7 14:21:13 x4 kernel: [drm] ring test on 5 succeeded in 1 usecs Sep 7 14:21:13 x4 kernel: [drm] UVD initialized successfully. Sep 7 14:21:13 x4 kernel: switching from power state: Sep 7 14:21:13 x4 kernel: ui class: none Sep 7 14:21:13 x4 kernel: internal class: boot Sep 7 14:21:13 x4 kernel: caps: video Sep 7 14:21:13 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:21:13 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:21:13 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:21:13 x4 kernel: status: c b Sep 7 14:21:13 x4 kernel: switching to power state: Sep 7 14:21:13 x4 kernel: ui class: none Sep 7 14:21:13 x4 kernel: internal class: uvd Sep 7 14:21:13 x4 kernel: caps: video Sep 7 14:21:13 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:21:13 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:21:13 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:21:13 x4 kernel: status: r Sep 7 14:21:20 x4 kernel: SysRq : Emergency Sync (new boot) Sep 7 14:44:49 x4 kernel: switching from power state: Sep 7 14:44:49 x4 kernel: ui class: performance Sep 7 14:44:49 x4 kernel: internal class: none Sep 7 14:44:49 x4 kernel: caps: video Sep 7 14:44:49 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:44:49 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:44:49 x4 kernel: power level 1 sclk: 70000 vddc_index: 2 Sep 7 14:44:49 x4 kernel: status: c Sep 7 14:44:49 x4 kernel: switching to power state: Sep 7 14:44:49 x4 kernel: ui class: none Sep 7 14:44:49 x4 kernel: internal class: uvd Sep 7 14:44:49 x4 kernel: caps: video Sep 7 14:44:49 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:44:49 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:44:49 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:44:49 x4 kernel: status: r Sep 7 14:44:59 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 10000msec Sep 7 14:44:59 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000eac last fence id 0x0000000000000eaf on ring 5) Sep 7 14:44:59 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10466msec Sep 7 14:44:59 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000064ff last fence id 0x0000000000006504 on ring 0) Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 10500msec Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000eac last fence id 0x0000000000000eaf on ring 5) Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10966msec Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000064ff last fence id 0x0000000000006504 on ring 0) Sep 7 14:45:00 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 11000msec ... Sep 7 14:45:17 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000eac last fence id 0x0000000000000eaf on ring 5) Sep 7 14:45:17 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 28466msec Sep 7 14:45:17 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000064ff last fence id 0x0000000000006504 on ring 0) Sep 7 14:45:18 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 28500msec Sep 7 14:45:18 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000eac last fence id 0x0000000000000eaf on ring 5) Sep 7 14:45:18 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 28966msec Sep 7 14:45:18 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000064ff last fence id 0x0000000000006504 on ring 0) Sep 7 14:45:18 x4 kernel: SysRq : Emergency Sync (new boot) Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: ring 5 stalled for more than 10000msec Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10000msec Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x00000000000001ed last fence id 0x00000000000001f6 on ring 0) Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x000000000000000b last fence id 0x000000000000000f on ring 5) Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: Saved 409 dwords of commands on ring 0. Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: GPU softreset: 0x00000099 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA00034E0 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20045040 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x01000004 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00200002 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00005087 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x808D8645 Sep 7 14:48:14 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008020_GRBM_SOFT_RESET=0x00007FEF Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: SRBM_SOFT_RESET=0x00008100 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA0003030 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20048040 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000000 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000000 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00000000 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80100000 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: GPU reset succeeded, trying to resume Sep 7 14:48:15 x4 kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000). Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: WB enabled Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8800db8dcc00 Sep 7 14:48:15 x4 kernel: radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0xffffc90000116038 Sep 7 14:48:15 x4 kernel: [drm] ring test on 0 succeeded in 1 usecs Sep 7 14:48:15 x4 kernel: [drm] ring test on 5 succeeded in 1 usecs Sep 7 14:48:15 x4 kernel: [drm] UVD initialized successfully. Sep 7 14:48:15 x4 kernel: switching from power state: Sep 7 14:48:15 x4 kernel: ui class: none Sep 7 14:48:15 x4 kernel: internal class: boot Sep 7 14:48:15 x4 kernel: caps: video Sep 7 14:48:15 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:48:15 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:48:15 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:48:15 x4 kernel: status: c b Sep 7 14:48:15 x4 kernel: switching to power state: Sep 7 14:48:15 x4 kernel: ui class: none Sep 7 14:48:15 x4 kernel: internal class: uvd Sep 7 14:48:15 x4 kernel: caps: video Sep 7 14:48:15 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:48:15 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:48:15 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:48:15 x4 kernel: status: r Sep 7 14:48:15 x4 kernel: SysRq : Emergency Sync (new boot) Sep 7 14:53:20 x4 kernel: switching to power state: Sep 7 14:53:20 x4 kernel: ui class: none Sep 7 14:53:20 x4 kernel: internal class: uvd Sep 7 14:53:20 x4 kernel: caps: video Sep 7 14:53:20 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:53:20 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:53:20 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:53:20 x4 kernel: status: r Sep 7 14:53:30 x4 kernel: radeon 0000:01:05.0: ring 0 stalled for more than 10050msec Sep 7 14:53:30 x4 kernel: radeon 0000:01:05.0: GPU lockup (current fence id 0x0000000000000596 last fence id 0x00000000000005a3 on ring 0) Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: Saved 601 dwords of commands on ring 0. Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: GPU softreset: 0x00000088 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA00030B0 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20045040 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000004 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000002 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00005087 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80098645 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008020_GRBM_SOFT_RESET=0x00004001 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: SRBM_SOFT_RESET=0x00008100 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008010_GRBM_STATUS = 0xA0003030 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008014_GRBM_STATUS2 = 0x00000003 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_000E50_SRBM_STATUS = 0x20048040 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008674_CP_STALLED_STAT1 = 0x00000000 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008678_CP_STALLED_STAT2 = 0x00000000 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_00867C_CP_BUSY_STAT = 0x00000000 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_008680_CP_STAT = 0x80100000 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: GPU reset succeeded, trying to resume Sep 7 14:53:31 x4 kernel: [drm] PCIE GART of 512M enabled (table at 0x00000000C0258000). Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: WB enabled Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00 and cpu addr 0xffff8800db8dcc00 Sep 7 14:53:31 x4 kernel: radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038 and cpu addr 0xffffc90000116038 Sep 7 14:53:31 x4 kernel: [drm] ring test on 0 succeeded in 1 usecs Sep 7 14:53:31 x4 kernel: [drm] ring test on 5 succeeded in 1 usecs Sep 7 14:53:31 x4 kernel: [drm] UVD initialized successfully. Sep 7 14:53:31 x4 kernel: switching from power state: Sep 7 14:53:31 x4 kernel: ui class: none Sep 7 14:53:31 x4 kernel: internal class: boot Sep 7 14:53:31 x4 kernel: caps: video Sep 7 14:53:31 x4 kernel: uvd vclk: 0 dclk: 0 Sep 7 14:53:31 x4 kernel: power level 0 sclk: 50000 vddc_index: 2 Sep 7 14:53:31 x4 kernel: power level 1 sclk: 50000 vddc_index: 2 Sep 7 14:53:31 x4 kernel: status: c b Sep 7 14:53:31 x4 kernel: switching to power state: Sep 7 14:53:31 x4 kernel: ui class: none Sep 7 14:53:31 x4 kernel: internal class: uvd Sep 7 14:53:31 x4 kernel: caps: video Sep 7 14:53:31 x4 kernel: uvd vclk: 53300 dclk: 40000 Sep 7 14:53:31 x4 kernel: power level 0 sclk: 50000 vddc_index: 1 Sep 7 14:53:31 x4 kernel: power level 1 sclk: 50000 vddc_index: 1 Sep 7 14:53:31 x4 kernel: status: r Sep 7 14:53:39 x4 kernel: SysRq : Emergency Sync
Quoted 6 lines
--
Markus
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re:
Quoted 6 lines · Alex Deucher
Quoted 4 lines · Markus Trippelsdorf
Quoted 2 lines · Christian König
Let me know if it works for you, cause we don't really have any hardware any more to test it.
Quoted 8 lines
Quoted 5 lines
I've tested your patch series today (using drm-next-3.18 from ~agd5f/linux) on a RS780D/Radeon HD 3300 system with a couple of H264 videos. While it sometimes works as expected, it stalled the GPU far too often to be usable. The stalls are not recoverable and the machine ends up with a black sreen, but still accepts SysRq keyboard inputs.
Does it work any better if dpm is disabled?
Unfortunately no. The symptoms are unchanged.
Signature · 1 line
Markus